package com.aismy.admin.service;

import com.aismy.admin.entity.ConsultationMessage;
import com.aismy.admin.websocket.WebSocketMessage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ConsultationMessageService extends IService<ConsultationMessage> {
    /**
     * 获取咨询的历史消息
     *
     * @param consultationId 咨询ID
     * @param page 页码
     * @param size 每页大小
     * @return 消息分页数据
     */
    Page<ConsultationMessage> getHistoryMessages(Long consultationId, Integer page, Integer size);

    /**
     * 将消息标记为已读
     *
     * @param messageIds 消息ID列表
     */
    void markAsRead(List<Long> messageIds);
}